package com.jhs.kjs.service.impl;

import java.util.List;

import com.jhs.kjs.dto.AdminPointDTO;
import com.jhs.kjs.dto.MemberPagingDTO;
import com.jhs.kjs.dto.UserDTO;
import com.jhs.kjs.dto.UserViewDTO;
import com.jhs.kjs.service.IAdminMemberService;
import com.jhs.kjs.service.dao.IAdminMemberMapper;

public class AdminMemberServiceImpl implements IAdminMemberService{

	private IAdminMemberMapper mapper;

	public void setMapper(IAdminMemberMapper mapper) {
		this.mapper = mapper;
	}

	@Override
	public List<UserDTO> getUserList(MemberPagingDTO param) {
		return mapper.getUserList(param);
	}

	@Override
	public UserViewDTO getUserInfoByUserId(String userId) {
		return mapper.getUserInfoByUserId(userId);
	}

	@Override
	public List<AdminPointDTO> getBuyPoint(AdminPointDTO pagingDTO) {
		return mapper.getBuyPoint(pagingDTO);
	}

	@Override
	public List<AdminPointDTO> getUsePoint(AdminPointDTO pagingDTO) {
		return mapper.getUsePoint(pagingDTO);
	}

	@Override
	public int getBuyTotal(String userId) {
		return mapper.getBuyTotal(userId);
	}

	@Override
	public int getUseTotal(String userId) {
		return mapper.getUseTotal(userId);
	}

	@Override
	public void memberDeleteUser(String userId) {
		mapper.memberDeleteUser(userId);
	}

	@Override
	public int getCountUserList(MemberPagingDTO param) {
		return mapper.getCountUserList(param);
	}

}
